package com.ipzoe.common.bean.entity;

import com.ipzoe.common.util.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Transient;
import java.util.List;

/**
 * 角色
 * <p>
 * Created on 2018/1/18.
 *
 * @author pfzhang
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Role", description = "角色")
public class Role extends BaseEntity {

	/** 角色名称 */
	@ApiModelProperty("角色名称")
	private String name;

	/** 角色描述 */
	@ApiModelProperty("角色描述")
	private String description;

	/** 角色菜单ID集合 */
	@ApiModelProperty("角色菜单ID集合")
	@Transient
	private List<Long> menuIdList;
}
